package top.tocchen.bookshop.enums;

/**
 *
 * 请求状态码枚举
 *
 * @author tocchen
 * @date 2022/6/19 18:07
 * @since jdk 1.8
 **/
public enum HttpStatusEnum {


    /** 请求成功 */
    SUCCESS_STATUS(200,"Success"),
    /** 请求失败 */
    FAIL_STATUS(400,"Bad Request");

    private Integer status;
    private String message;

    private HttpStatusEnum(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return status;
    }

    public String getMessage() {
        return message;
    }
}
